package DesignPattern.factory;

import factory.demo1.controller.DeliverController;
import factory.demo1.entity.AwardInfo;
import factory.demo1.entity.ResponseResult;
import org.junit.Test;

/**
 * @author 1
 * @version 1.0
 * @description: TODO
 * @date 2024-08-28 11:37
 */
public class Demo1 {
    DeliverController deliverController = new DeliverController();
    @Test
    public void test1() {
        AwardInfo awardInfo = new AwardInfo();
        awardInfo.setUid("1001");
        awardInfo.setAwardNumber("101010");
        awardInfo.setAwardType(1);
        ResponseResult responseResult = deliverController.awardToUser(awardInfo);
        System.out.println(responseResult);
    }


}
